package com.gy.hsim.bservice.framework.enums;


/**
 * 枚举  定义返回码和描述
 * @author Lee
 *
 */
public enum MessageResultEnum {
	PARAMETER_NOT_ENOUGH("101","参数不足"),
	EXEC_SUCCESS("200", "success"), 
	EXEC_AUTHENTFAILD("208", "鉴权失败"), 
	EXEC_NONEDATA("204", "查询无数据"), 
	EXEC_NONEUPDATEDATA("206", "更新的数据条数为0"),
	EXEC_HAVEWRONGWROD("205", "存在敏感词"), 
	EXEC_FAILD("201", "接口执行失败"),
	FRIEND_IS_IN("501", "好友已经存在"),
	FRIEND_Add_YOURSELF("502", "不可以自己加自己为好友"),
	FRIEND_ADD_TWICE("503", "不可以重复请求添加好友"),
	IS_FRIEND("808","是好友关系"),
	IS_NO_FRIEND("807","不是好友关系"),
	INSUFFICIENT_AUTHORITY("601","不具备操作权限"),
	USER_IN_GROUP("602","用户已在群中"),
	NOT_GROUP_NORMAL_MEMBER("603","操作对象不是群普通成员"),
	REQ_VERIFIED("604","请求已经被验证"),
	REQ_VOVERDUE_DATE("605","请求已经失效"),
	GROUP_IS_UNACTIVE("606","群已不存在"),
	USER_NOT_INGROUP("607","该用户已不在群中"),
	GROUPMEMBER_COUNT_LIMIT("610","群成员数量已达上限"),
	GROUPCREATE_COUNT_LIMIT("611","用户创建群数量已达上限"),
	GROUPJOIN_COUNT_LIMIT("612","用户加入群数量已达上限"),
	GROUPMANAGER_COUNT_LIMIT("613","群管理员数量已达上限"),
	TEAMCREATE_LIMIT("701","好友分组已达上限"),
	TEAMNAME_DUPLICATE("702","分组名称重复")
	;
    /* 返回码  */
	private String retCode;
	
	/* 返回值描述 */
	private String message;
	
	private MessageResultEnum(String retCode, String message) {
		this.retCode = retCode;
		this.message = message;
	}
	public String getRetCode() {
		return retCode;
	}
	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

	
	
}
